const http = require('http');

http.createServer((request, response) => {
    console.log(req.url);
    if(req.url == '/') {
        response.end('hello world')
    } else if(req.url == '/login') {
        response.end('login')
    } else if(req.url == '/register') {
        response.end('register')
    }
    
}).listen(3000, () => {
    console.log('server is running')
})